updated code style according to https://github.com/felixge/node-style-guide