Add the module export in main.js, for the testing
Have some problem dealing with the cookies