added simple building via r.js (not yet complete)