added device listener for phonegap ready