These days you should probably be using Bower or Grunt to fetch and bundle your js files, but for those still using npm modules, specifically those useing Hem, this works.