Terrain generation algorithms in JavaScript and CoffeeScript.