Using vanilla js with revealing module pattern. The code is not that great, but its less spaghetti than before