scss + js templating fixes