what I basically want to do is this:
variable = \'whatever\'; fb.set({ variable : \"More Stuff\" });
So this will result in an entry that looks
For the latest version of Firebase, use brackets around the variable name:
firebase.database().ref("pathName").set({[variable] : 'MoreStuff'});
Using the other method of setting the index of the variable to the value will create an additional layer in the database structure.