nodeType property error when using selectors like: $(widget)