Change `==` to `===`
Clean up whitespace and var declarations
Delete closing script tag in IE catch

Seems weird that that was there, did it have a purpose?