Node.js: DRY default attributes 

Second commit is related to travis-ci/travis-ci#1174 (and may need an update, depending on when next VM deployment will occur)