exec when the dom.js loaded