xhr vs form encoding and template interpolation.