use node 'inherits', add browser-friendly version
add test
v2.0.0