Add  function for template vars within javascript