Added jslint globals. Added offline access and additional scopes options...

I added a globals section as the top to get rid of jslint warnings. I needed to add an optional parameter to allow for offline access to get a server-side token. I also needed a way to add additional scopes to the login request.