A phonegap plugin that fires events from native code