Fix invalid jQuery selector usage, should use `~=`, not `=~`

This breaks with newer versions of jQuery, as reported in #21