adapts plugin for use with Phonegap 3.0 CLI