simple dom wrapper, inspired by christian johansen's talk on functional javascript