fixed js file error