Used browserify/commonJS and added messenger module.
More progress.