Added standardized javascript oauth handler