Moved the javascript from the head to the bottom of the body to decrease loading times.