function versionTest(version, between) {
    var fromVersion = between[0];
    var toVersion = between[1];

    if (compareVersion(version, fromVersion) === -1) {
      return false;
    }
    return !toVersion || compareVersion(version, toVersion) === -1;
  }
Checks if a version is between two different versions.
version should be >= left side, < right side

@param {String} version1
@param {String} version2
@return {Boolean}