Framework to make life easier with JSONP on cross-domain communication