Add a template for javascript variables