Remove location.reload() after HTTPRequest