Iron out some cross-browser difficulties.