add paint.js file, add previousColorElement function to this file