refactoring, start ajax.js, fix addHavesModules (afterDOMready)