Google's JavaScript library for OAuth is so bad :(