compiler a javascript template to source code.