Update script.js

Removed unnecessary semicolon and updated from new Array() to literal bracket notation.