Fixing java script to use http_status_code instead of http_status. Also
changed from response.http_status === 200 to
parseInt(response.http_status_code) == 200
which to me seems more exact