Move from Coffee to VanillaJS