Fix race condition + local dependency paths

* Local dependency and build file examples used unmapped "~/*" path (previous default?)
* Final build example ran application code before DOM was ready (never tested?)