updated code and added JSONP lib