I am trying to async the google map api javascript.
So, the normal script tag works
Do not use document.write(), for the reasons explained by market and Dr Molle. Use appendChild() instead, as done in Google's example of async loading.
document.write()
appendChild()