Rewrote without jquery, ha ha!