removed redundant functions from fw.dom.js