Correcting many Javascript errors. Fixes many IE problems.