Cleaned up code in Paintly.js