Refactor NPM installation:

- Use a function for the npm install to remove switches
- Install tldr