結果 : get first 10 words of string javascript