結果 : check if input is empty javascript