Update index.js

add patch discussed in https://github.com/karma-runner/karma-teamcity-reporter/issues/5#issuecomment-36894560

this should force writing to stdout *synchronously* and avoid log truncation on build.