Template now works with jquery + changed design