Cleanup in Node.js code.

Based on reports from eslint.