結果 : javascript wait until value is not null