added a nicer print scheme for the cat.js demo