using CommonJS and webpack