Fixed compatibility issues with firefox, and moved all css styling in the JavaScript file to the CSS file.