joinjs: let most functions return the module itself

so we can do things like:

  require('joinjs').dir('jsdir').dump()