javascript split string by character count