Abuse words validation using javascript

I’ve a simple message board system to upload users’ comments. But somebody populated the database with abuse words. Is there any javascript available to validate the malpractices like this.