code review changes
more code review changes
taking out the success and error function in the ajax call
remove ajax call for a XMLHttpRequest
code review changes