start moving build.js to async and other fixups