refactored boot.js a bit to make jshint happy
mostly jshint stuff