fixed jquery for tamplates + styling