move definition of jquery extensions to where they are known to be loaded