fixing jsonp issue, adding patch by jordan