adding code for node + phantomjs based unit testing
working example
ignoring produced coverage json file