Fixed bug in script.js - it works now