update with jquery templates