fixed error with js files