$ not defined in the template, so replace it with jQuery