Clean up a few grammar and formatting mistakes.
Add additional checks for broken IE behavior.