Added the option to use a custom clickQuery, inspired by @athieriot (thank you). Closes #46, Closes #52