fix(jQuery ref): check for jQuery and angular on window object