Additions to script.js