Update script.js

fix live display