build errors with r.js and leapjs