wait for document ready before adding group opts