We could do this with an object as:
`Actions = {
    'open': OpenAction,
    'share': ShareAction
};
var action = Actions[params.name]`

I wouldn't mind if we are just opening a door for future, more complex actions that require some kind of initialisation