update template & order js