corrected js error 2