Update JS method to limit character count on content compose