JavaScript: Update authorization token

Updates the authorization header

Parameters