Polling for DOM before loading Firebase script, since window.onload may be clobber by app code