Updated old Diagnostic plugin for PhoneGap >= 3