Fixed Bug - input[0] is undefined when using an element other than <input>
Updated README with link to example on Plnkr