Detect jQuery version

Fixes #121