Added some javascript code