[boot.js] fix the order problem (issue #578)