Optimizations to UI and some JS

I pared down the number of required fields in the UI, added a function
to get the time when the browser loads, and added a function to
determine which period that time is in (1-9). Also, comments.