Use vanilla JS where possible to improve performance & reduce file size