use inherits for better browser compat
1.2.1
1.2.2