Actually converted it to jQuery finally through that pain.