Fix Payment Protocol example in the browser

Some changes in bitcore occured which broke the browser paypro example. Two hours of debugging later and I managed it fix it.