Added script.js

Does what the iMacros script does, just in JS.