fix main.js: add define paths