conformant with https://github.com/ecomfe/spec/blob/master/javascript-code-style.md
little edit to pass jshint and jscs
see #10