update script.js
update engine.js