Updated files

Added two functions to script.js