Change total handler to use JSONP