Did some crazy jQuery stuff that took way too long