SmartBeacon phonegap plugin.