add async loading to firebase and google analytics scripts