Add sinon.js (/?testing) and fix #14