JavaScript codes

Some useful codes provided by us.