minor changes to jQuery template