Added JavaScript version, problem with LaTeX and parens, also error in parsing, see calculate unit test