Moved javascript and css from inline to external files