結果 : check last 2 character of string javascript