Update script.js

Initial helper script