Create script.js

Moved the jQuery from the HTML into its own file and made a link in the HTML.

I changed the functions for them work outside of HTML. See comments for other details.