Update tjsUtils.js

remove obsolete methods and tidy