update with jsonp function