Small class declaring utility for javascript / node.js