fix use of children not found in older browsers, needs to be childNodes