Cross-domain communication with JSONP

Enable cors for all domains isn't a good practice. Maybe in this case is better use jsonp. I added a new param to get response with this method.