Updated logic in index.html for tiers
Fixed oauth