make it work with jquery older versions
run the script also on older chapters pages