Phonegap Diagnostic plugin