Moving jquery version hack to more specific scope