moving the css and js code around to clean up the code.