syntax change in script.js
use script in tx