updated yp-scripts.js