updated html and used jshint to clean up js code