Fixed IE8 JavaScript bug.
Removed debug output.