Refactoring responseText, adding status