Fixed JS errors and IE issues.