Use new way of defining phonegap plugins.