added basePath to main.js, modules now load correctly