if (model.path.match(/(\S*\/jobs$)|(\S*\/jobs\/)/) !== null) { }