Moved all of the custom javascript to an external JS file.