Now that you know how to include JavaScript in your webpages, realize that you should not include your JS in the <head> in production. When your browser hits a script in a document while loading the page, it ceases all downloads and rendering until it finishes downloading, parsing and executing your script.
Put your scripts at the *end* of your documents to improve perceived download speed.
Your browser is single threaded. When downloading, parsing and executing JS, all other features (download, user interactions like button clicking, etc) are paused until your browser is finished with the JavaScript