Check if client browser matches rules defined with semver syntax in Node.js