dom: less jQuery, more vanilla JS

at some point jQuery can be replaced with a more lightweight library, so code needs to be less jQuery-based, for easier migration
templating: fix left .ejs loading