Wrapped JSON payload.
Moved JSON wrapper into a function and added jsonp support.