Make sure the JavaScript used document.on(), so it also works with AJAX pages. Fixes #8