I don't recognize that syntax I'm sorry to say.
It looks like you're using a function call to get the name of the object?
getStyle["display"](node) could be rewritten as getStyle.display(node) but I'm not sure what's going on there. Does this actually work?