adding corrected js