A Javascript implementation of the diamond-square algorithm