jsortable.tpl code cleanup