better lookup for PhoneGap state in Backbone.ready