Fix all the silly cross-browser compatibility problems and make everything work.