IE bug-fix and various front-end optimizations