Update sleeps.js

Improved JS