reformatted the js file