corrected the js file