Small add to javascript

Added a few lines to the javascript and moved around in the CSS