Add forgotten BUILD_DIR reference
Retab source
Extract some parts into their own module
Rename quantities.js source file to qty.js