js fix revert