Rewritten opac script to use selenium and firefox.