Moving to Vanilla JS (closes #291)