updated to use latest version of regex2nfa
isolated js files for each page