Update dbc.js

moved spec from the prototype to the constructor