include jquery earlier in template so it can be used in templates