First working version
Merge branch 'master' of https://github.com/mtharrison/credit.js