minor parsing the header for the oauth token
compiled to js