initial js work for user templates ajax