Refactoring

I refactored a chunk of the javascript. I will continue to refactor and debug the daybox javascript code.