/*
*	PhoneGap Plugin KeepScreenOn
*	Author: Mikey Alder
*	Twitter: @MikeyAlder
*
*	Toggle between allowing the device screen to timeout (sleep)
*/
var keepScreenOn = {

	// Set a global screen locked variable
	screenOnFlag: false,

	/*
	* Acquire a screenlock (prevent the device from screen idle)
	*/
	enable: function()
	{
		cordova.exec(null, null, 'KeepScreenOn', 'enable', []);
		screenLock.screenlocked = true;
	},

	/*
	* Release the screenlock (enable the device screen to idle)
	*/
	disable: function()
	{
		cordova.exec(null, null, 'KeepScreenOn', 'disable', []);
		screenLock.screenlocked = false;
	}

	/*
	*	Toggle the screenlock
	*/
	toggleKeepScreenOn: function() {
		if(this.screenOnFlag) {
			this.disable();
		} else {
			this.enable();
		}
	}
}
@@ -378,39 +378,41 @@
  %5B%5D);%0A%09%09
-s
+keepS
 creen
-Lock
+On
 .screen
-locked
+OnFlag
  = true;
@@ -575,31 +575,33 @@
 ;%0A%09%09
-s
+keepS
 creen
-Lock
+On
 .screen
-locked
+OnFlag
  = f
@@ -608,16 +608,17 @@
 alse;%0A%09%7D
+,
 %0A%0A%09/*%0A%09*
@@ -759,9 +759,10 @@
 %0A%09%09%7D%0A%09%7D%0A
-
 %7D
+%0A

Update KeepScreenOn.js