fix js bug and add limitation for text messages