Add model.js script generation