Cleans up JSP and consolidates javascript scripts