Added some more js code