var reminders = [];
var reminderGiven = false;
function remind() {
	if(reminderGiven) return;
	reminderGiven = true;
	console.log("URL PARAMS AVAILABLE: " + reminders.join(", "));
};

function getURLParam(name, defaultValue) {
	if(!getURLParam.active) return defaultValue || null;
	if(reminders.indexOf(name) == -1) {
		reminders.push(name);
		reminderGiven = false;
		setTimeout(remind, 2000);
	}
	var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
	var results = regex.exec(window.location.href);
	if (results==null){
	   return defaultValue;
	} else if(results[1] == "true"){
		return true;
	} else if(results[1] == "false"){
		return false;
	} else if(!isNaN(results[1])){
		return parseInt(results[1]);
	} else {
		return results[1] || defaultValue || false;
	}
}

getURLParam.active = true;

module.exports = getURLParam;
@@ -566,16 +566,17 @@
 ts%5B1%5D ==
+=
  %22true%22)
@@ -616,16 +616,17 @@
 ts%5B1%5D ==
+=
  %22false%22
@@ -689,16 +689,14 @@
 urn 
-parseInt
+Number
 (res

allow numbers, not just integers