Update scripted.js

port