Boots iife

Hey BD, 

Doing a pull request because I rewrote a significant portion of the code. If you don't wanna deal with my conventions going forward, don't merge. I'd be down to go over them with you in person, too, if you want.