use inherits module

Instead of inline code, use inherits module. Works better with browsers
and provides es < 5 support.
0.10.1