Proxy Script for retrieving an access token in a browser-based script