JavaScript Toolbox Boilerplate Code