fire deviceready in browser