Removed unnecessary variable 'ajaxbusy',added a function that gets
called on readystate change of the ajax request.
I must have made some changes,must be some minor function
rectifications.