XHR is working but still have to do something about 1. using jsonp to get through CORS and handling the parsing of xhr.responseText in a better way