Almost every web developer already uses JavaScript. But so far, only Mexican Oscar Toledo managed to shove a real chess algorithm into one kilobyte of JavaScript code.
The link can fight with the computer right in the browser window, as well as get acquainted with the brain-crushing very intricate script code.