This question has more to do with JavaScript than MongoDB.
What you want is called computed property names.