結果 : check user input javascript