adds basic js templating system