Get it close to working with webpack