Update test_6.js

//Rewrite debug messages and delete some unnecessary lines.