corrected js file