update on how *really* shitty my html generator code used to be. now it's just shitty. FML