Update ttt.js

added comments