diff --git a/resources/Connector.js b/resources/Connector.js
index a8bf9bce58c2989d96805ff83ab2efc53020d474..5c5293d16d0a45174c7229d68a5e1abf1fecd479 100644
--- a/resources/Connector.js
+++ b/resources/Connector.js
@@ -49,9 +49,10 @@ var AppConnector = {
 		if(typeof params.data == 'undefined') {
 			if(typeof params == 'string') {
 				var callerParams = params;
-				if(callerParams.indexOf('?')!== -1) {
-					var callerParamsParts = callerParams.split('?')
-					callerParams = callerParamsParts[1];
+				var index = callerParams.indexOf('?');
+				if (index !== -1) {
+					var subStr = callerParams.substr(0, index+1);//need to replace only "index.php?" or "?"
+					callerParams = callerParams.replace(subStr,'');
 				}
 			}else{
 				callerParams = jQuery.extend({}, params);
@@ -61,6 +62,7 @@ var AppConnector = {
 		}
 		//Make the request as post by default
 		if(typeof params.type == 'undefined') params.type = 'POST';
+		if(typeof params.jsonp == 'undefined') params.jsonp = false;
 
 		//By default we expect json from the server
 		if(typeof params.dataType == 'undefined'){
@@ -96,7 +98,6 @@ var AppConnector = {
 			 params.url = 'index.php';
 		}
 
-
 		var success = function(data,status,jqXHR) {
 			aDeferred.resolve(data);
 		}
@@ -104,7 +105,7 @@ var AppConnector = {
 		var error = function(jqXHR, textStatus, errorThrown){
 			aDeferred.reject(textStatus, errorThrown);
 		}
-		
+
 		if(pjaxMode) {
 			if(typeof params.container == 'undefined') params.container = '#pjaxContainer';