Allow limiting comment length by characters rather than bytes in JS