結果 : if input is not empty javascript