JavaScript API examples

Some useful JavaSscript API codes provided by us.