ie8: check for window.jQuery instead of $