better solution than the last, add a boot js file and use require style