moved oauth init into deviceready callback