removed baseUrl from require so that it defaults to main.js directory. This Fixes #9 as env varibale is now used in urls.