reverted to commonjs requires and addition of browserify HTML client