100 chairs problem in JavaScript.