Changed some of the javascript format