error in js file