Use a node module in an angular controller