I am not an expert on the JS API but Measure Names is not an addressable variable in Tableau outside of the api so I don't think this would work within the JS API framework.
See this Feature Idea - https://community.tableau.com/ideas/1256 and consider voting on it.
Thanks for the comment. I voted up your idea. I honestly thing that the Measure Names is addressable because when I grab a Mark that's been clicked and look at it's name/value pairs, it will say something like:
MONTH(Open Ts) = "Aug 17"
Measure Names = "Backlog Tickets"
But when I flip it around and try to Select that mark, it doesn't seem to work.
Ok, just got off the phone with Support... apparently this is functionality that is not currently supported by Tableau. They've submitted an enhancement request for it, but at least that answers that question...