Format the javascript