Holy shit, this is really really nasty old JS code. I would love to dump this if possible.