Optimized version of Inventory App Test using r.js.