Added some js code