Pulled the javascript into a separate file