moved loading functions to Loader object in DOM module