Fixed error with js.