Prevents backward sleeps from being entered via the javascript entry

[This should prevent backward sleeps completely]