Javascript Wait For Two Async Functions