added capture event
added JSONP support