code: function versionCmp(ver, cmp) {
  		
  		ver      = ver.split('.');
  		var verMajor = Number(ver[0]);
  		var verMinor = (ver.length > 1) ? Number(ver[1]) : 0;
  		
  		cmp = cmp.split('.');
  		var cmpMajor = Number(cmp[0]);
  		var cmpMinor = (cmp.length > 1) ? Number(cmp[1]) : 0;
  		
  		// equal
  		if (verMajor === cmpMajor && verMinor === cmpMinor) {
  			return 'eq';
  		}
  		else if (verMajor < cmpMajor || (verMajor === cmpMajor && verMinor < cmpMinor)) {
  			return 'lt';
  		}
  		else if (verMajor > cmpMajor || (verMajor === cmpMajor && verMinor > cmpMinor)) {
  			return 'gt';
  		}
  	}
docs: version compare