Fixed script.js (last commit was accidentally an a preliminary version of the script)