corrected js version