Moved nodeListener from "body" to document