結果 : javascript wait until variable is not null