Removed unused styles; restructured inline js