Temporarily adding func.js to repo while i finish writing the lexer. Also holds the scaled lehvenstein algorithm for chains.