added 'deviceready' listener