Build script.js in postinstall for ploy