corrected js