Development of boot.js to allow for a main() function