re-wrote boot.js as AMD module