Moved inline JavaScript to the proper .js files, moved all JavaScript inclusions to header.php