Run npm install when running tests if nodeunit is missing
Move ANSI to HTML code to separate module