Corrected error in js file