fix the js files