Moved jQuery requirement to onBeforeInit to ensure plugins have jquery before init