calculator with template, jslint, and code coverage