Revert "updated index.js and oauth.js"

This reverts commit 551ed50fca578beb8df2a6fae3e62fd8764adf96.