Text classification using TensorFlow.js: An example of detecting offensive language in browser