minor changes to classBased.js