The retouch pattern of JavaScript