abstracted/cleaned up JS code, added style.css