Added styling and refactored some javascript.