Complete web purchase from message (bug 1101995)

@muffinresearch r?

I've only tested with a dummy html page but it should work with your patch!
Are we explicitly leaving out trailing commas for any reason? Might be nice to leave them in for nicer future diffs. (Fwiw IE supports them since IE8 - I'm presuming this is an old habit from the bad old days)