updated webpd.js