Cash Register build in nodejs and tested with mocha and chai