Update npm when running travis
Update dependencies
Improve consistency of code style