changed to pledge.js