Using `$(document).on()` is problematic because the same js code will be executed in each pjax response, which will result in binding the handler to the event multiple times.