detect jquery defined