embed the amplitude JS so we don't block the onload event