Added more friendly "import-functions" attribute
Bug fix in dom.js