Update painting.js

format