Update script.js

fix live display
Merge pull request #1 from robisaks/patch-1

Update script.js