Fix syntax error in complete.js
Modified ToS