Added jquery dynamic template coding