The request is considered done regardless of status code

Recursive calls to setTimeout breaks when ajax function gets a 404 or 500 response. Hence remaining styles is not added.