trun global htmFile object into build-in object