fixed the js file