Sample javascript for an auth popup to connect to Xero's OAuth API