Improved support for jsonp callbacks Edit

recreating ticket #202