Revised sleep.html, still need work on localstorage