made some styling changes, and cleaned up some JavaScript to reduce the number of JQuery calls