add assert.js

since the main use case of this module is testing it nice to get useful error messages