Change 'deviceready' event handling to avoid the need to use .()