fix preventdefault for IE8
fix IE8 to return the focus to the opener element
add validthis jshint option to pass the 'possible strict violation' message