Moved a script into the js file scripts.js from additions.php