It might be better to just use https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/share/spice/bitcoin/bitcoin.js#L21 so that you wouldn't have to worry about replicating the functionality of `remainder` in the back-end. This gets the remainder in the URL that called the callback function.