Fix an issue with modern versions of jQuery
Additional customisation