added modified bb.js that works with backbone application todocontracts.coffee

some modifications are neccessary:
change of some fields that were not correct.
add class shim to allow for coffeescript like class inheritance (to have instanceof work)