Adds a weak and rather user-unfriendly validation to the javascript
entry.

[There should be no way a user can enter a sleep that overlaps with
another sleep now]