Fixed references to missing files. Refactored toolbox.js.