Removing invalid character from pay.js