DRY up mapping, add tests and coffeelint
remove console log
Merge pull request #9 from watsoncj/handlebars

DRY up mapping, add tests and coffeelint