I have'nt used this yet, i'm curious about your ajax calls. This is my case scenario.
1. GetAccessToken - I save the retrieved access token to a file. I can save this to localstorage in this case using BANano I think.
2. Used the saved access token to return other data from the rest...