function valueFromQuery(key, query) {
        htRegEx[key] = htRegEx[key] || new RegExp('(^|&|\\?)' + key + '=([^&]+)');
        var result = htRegEx[key].exec(query);

        return (result) ? result[2]: null;
    }
valueFromQuery
@param {String} key
@param {String} query