fix writing JS while making a new block
adding/fixing setColor in js