Add: If statement to optimize inherits

The inherits function now conditionally copies over prototype
properties from base objects only when there are more than one
bases being extended.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Merge pull request #14 from kevinconway/tweak_inherits

Add: If statement to optimize inherits