backup of script.js
script polishing