Make lazy building work again, don't assume source files exist, and make binaries that depend on JS artifacts work.