Update test_6.js

//Rewrite debug messages and delete some unnecessary lines.
Merge pull request #1 from ysilyutin/v2

Update test_6.js