Moved jquery-specific workarounds to a separate class JQuery