Add better fix for IE8
Make JSLint happy