Update script.js
Merge pull request #2 from canzhiye/master

make it work again (untested)