Pseudo-Blocking Async Javascript Functions