Separated js and css

I extracted the jQuery and CSS code from the HTML, saved them as
separate files and edited down refactored the code to be more
efficient. I suspect I can do something better with the "<div
class="box">"s, but haven't figured it out yet.