Modified scriptNew.js