updated script.js in hpci2