load js before load template