added visutils.js