Modify iOS PowerManagement plugin to make it phonegap 3.0 compatible