fixing classname removal
Related to #247.
adding sinon.js dependency