nit: missing space between the ' and the "?" . I would suggest a clearer syntax like: 

var path = (type === 'sharedUtilities') ?