updated frontend_js
send template id in header