node.js style inherit(util.inherit) for client side.