corrected .js file