fixed syntax in js file