commented paint.js file