Move licenseCodes outside function

If this will be a separate file, we might as well.
suggest.js: preprocess license regexes outside function