refactor code to JSONP mode ( json with a Padding(call back)) to overcome the cross domain issue