check for window.jquery fix #2