Update jquery & Fix input detection on chrome 41.x

Fixes #331