Fixed Cu.isDefined (oops). Also moved Cu.dom.contains as Cu.contains.