fix problem where url doesn't end in slash; support jsonp