inheriting tabIndex from original input (see #261)

As proposed in loopj#261