refactor GET/JSONP, POST on modern browsers complete