fix text.length is undefined
Merge branch 'master' of https://github.com/OnVelocity/jquery-textrange