Add template for javascript