cutlet pulls in MeCab, a medium sized C++ library, and at minimum a 250MB dictionary. I think people have run MeCab through emscripten before; you could stick it in an electron app but I wouldn't put it in a browser. More power to you if you can get it working but I think it'd be a big project.