Updates for javascript template functionality