On the server side we use Play Framework 2.0. Over there we have a rout in the routes file as in: It basically passes the name of the template from the path and name of the jquery's jsonp callback from the url args. scala side things look pretty simple. Naturally you would like to check for security properties, string injections and A/B testing groups. [plug] QWallet is hiring!