Partial revert of b55733dd73d987b50a960ffa470104d0351ed972
Partial revert of b55733dd73d987b50a960ffa470104d0351ed972

It included a bunch of unrelated box.js changes that were not complete.

foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,TanayParikh/foam2