Fixed misspelling of console in the twi and cs4.js error routines