removes support for IE6
removed unused variables
Merge pull request #516 from cash/ie6

Fixes #5040 removes support for IE6