added jsonp support to bypass same-origin policy with ajax calls