Edit in JSFiddle

window.run = function () {
    var r = noise();
    var b = document.getElementById("noise");
    b.innerHTML = '';
    b.style.display = 'inline-block';
    for (var x = 0; x < r.length; x++) {
        var e = document.createElement('div');
        for (var y = 0; y < r[0].length; y++) {
            var d = document.createElement('div');
            var c = ~~ (r[x][y] * 255);
            if(r[x][y] >= 0) {
                d.style.backgroundColor = '#0000ff';
            } else {
                d.style.backgroundColor = '#00ff00';
            }

            d.innerHtml = '&nbps;'
            d.style.width = '5px';
            d.style.height = '5px';
            d.style.float = 'left'
            e.appendChild(d);
        }
        b.appendChild(e);
        //b.innerHtml += '<br>'
    }
}

function noise() {
    var grid = [];
    var _width = 75;
    var _height = 75;
    var simplex = new SimplexNoise({
        octaves: 20,
        persistence: 0.4
    });
    for (var x = 0; x < _width; x++) {
        grid[x] = [];
        for (var y = 0; y < _height; y++) {
            var n = simplex.noise(x * 0.045, y * 0.045);
            
            //between -10000 and 9000
            grid[x][y] = ~~ ( (n*19000) - 10000 )
        }
    }

    return grid;
}


run();

function SimplexNoise(t){var e=t||{};e.rng=e.rng||Math,e.octaves=e.octaves||5,e.persistence=e.persistence||.2,e.level=t.level||.005,this.level=e.level;var n,r,o,i,s,a,f,h,l,u,c,M,v,p,g,d,m,b,q,S,w,x,N,k,D,G,R,j,y,T,z,A,B,C,E,F,H,I,J,K,L,O,P,Q,U,V,W,X,Y,Z,$,_,te,ee,ne,re,oe,ie,se,ae,fe,he,le,ue,ce,Me,ve,pe=.5*(Math.sqrt(3)-1),ge=(3-Math.sqrt(3))/6,de=2*ge-1,me=1/3,be=1/6,qe=(Math.sqrt(5)-1)/4,Se=(5-Math.sqrt(5))/20,we=2*Se,xe=3*Se,Ne=4*Se-1,ke=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1]],De=[[0,1,1,1],[0,1,1,-1],[0,1,-1,1],[0,1,-1,-1],[0,-1,1,1],[0,-1,1,-1],[0,-1,-1,1],[0,-1,-1,-1],[1,0,1,1],[1,0,1,-1],[1,0,-1,1],[1,0,-1,-1],[-1,0,1,1],[-1,0,1,-1],[-1,0,-1,1],[-1,0,-1,-1],[1,1,0,1],[1,1,0,-1],[1,-1,0,1],[1,-1,0,-1],[-1,1,0,1],[-1,1,0,-1],[-1,-1,0,1],[-1,-1,0,-1],[1,1,1,0],[1,1,-1,0],[1,-1,1,0],[1,-1,-1,0],[-1,1,1,0],[-1,1,-1,0],[-1,-1,1,0],[-1,-1,-1,0]],Ge=[[0,1,2,3],[0,1,3,2],[0,0,0,0],[0,2,3,1],[0,0,0,0],[0,0,0,0],[0,0,0,0],[1,2,3,0],[0,2,1,3],[0,0,0,0],[0,3,1,2],[0,3,2,1],[0,0,0,0],[0,0,0,0],[0,0,0,0],[1,3,2,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[1,2,0,3],[0,0,0,0],[1,3,0,2],[0,0,0,0],[0,0,0,0],[0,0,0,0],[2,3,0,1],[2,3,1,0],[1,0,2,3],[1,0,3,2],[0,0,0,0],[0,0,0,0],[0,0,0,0],[2,0,3,1],[0,0,0,0],[2,1,3,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[2,0,1,3],[0,0,0,0],[0,0,0,0],[0,0,0,0],[3,0,1,2],[3,0,2,1],[0,0,0,0],[3,1,2,0],[2,1,0,3],[0,0,0,0],[0,0,0,0],[0,0,0,0],[3,1,0,2],[0,0,0,0],[3,2,0,1],[3,2,1,0]],Re=Math,je=1,ye=.5,Te=function(){var t,e;ce=[],Me=[],ve=0;for(var n=0;je>n;n++)t=Math.pow(2,n),e=Math.pow(ye,n),ve+=e,ce.push(t),Me.push(e);ve=1/ve},ze=function(t,e,n){return t[0]*e+t[1]*n},Ae=function(t,e,n,r){return t[0]*e+t[1]*n+t[2]*r},Be=function(t,e,n,r,o){return t[0]*e+t[1]*n+t[2]*r+t[3]*o},Ce=function(){var t,e=[];for(t=0;256>t;t++)e[t]=Math.floor(256*Re.random());for(n=[],t=0;512>t;t++)n[t]=e[255&t]},Ee=function(t,e){return h=(t+e)*pe,c=Math.floor(t+h),M=Math.floor(e+h),g=(c+M)*ge,d=t-(c-g),m=e-(M-g),d>m?(S=1,w=0):(S=0,w=1),A=d-S+ge,B=m-w+ge,F=d+de,H=m+de,X=255&c,Y=255&M,oe=.5-d*d-m*m,0>oe?o=0:(oe*=oe,_=n[X+n[Y]]%12,o=oe*oe*ze(ke[_],d,m)),ie=.5-A*A-B*B,0>ie?i=0:(ie*=ie,te=n[X+S+n[Y+w]]%12,i=ie*ie*ze(ke[te],A,B)),se=.5-F*F-H*H,0>se?s=0:(se*=se,ee=n[X+1+n[Y+1]]%12,s=se*se*ze(ke[ee],F,H)),70*(o+i+s)},Fe=function(t,e,r){return h=(t+e+r)*me,c=Math.floor(t+h),M=Math.floor(e+h),v=Math.floor(r+h),g=(c+M+v)*be,d=t-(c-g),m=e-(M-g),b=r-(v-g),d>=m?m>=b?(S=1,w=0,x=0,k=1,D=1,G=0):d>=b?(S=1,w=0,x=0,k=1,D=0,G=1):(S=0,w=0,x=1,k=1,D=0,G=1):b>m?(S=0,w=0,x=1,k=0,D=1,G=1):b>d?(S=0,w=1,x=0,k=0,D=1,G=1):(S=0,w=1,x=0,k=1,D=1,G=0),A=d-S+be,B=m-w+be,C=b-x+be,F=d-k+me,H=m-D+me,I=b-G+me,K=d-.5,L=m-.5,O=b-.5,X=255&c,Y=255&M,Z=255&v,oe=.6-d*d-m*m-b*b,0>oe?o=0:(oe*=oe,_=n[X+n[Y+n[Z]]]%12,o=oe*oe*Ae(ke[_],d,m,b)),ie=.6-A*A-B*B-C*C,0>ie?i=0:(ie*=ie,te=n[X+S+n[Y+w+n[Z+x]]]%12,i=ie*ie*Ae(ke[te],A,B,C)),se=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:(ae*=ae,ne=n[X+j+n[Y+y+n[Z+T+n[$+z]]]]%32,a=ae*ae*Be(De[ne],K,L,O,P)),fe=.6-Q*Q-U*U-V*V-W*W,0>fe?f=0:(fe*=fe,re=n[X+1+n[Y+1+n[Z+1+n[$+1]]]]%32,f=fe*fe*Be(De[re],Q,U,V,W)),27*(o+i+s+a+f)};this.noise=function(t,e,n,o){for(he=0,r=0;je>r;r++)switch(le=ce[r],ue=Me[r],arguments.length){case 4:he+=ue*He(le*t,le*e,le*n,le*o);break;case 3:he+=ue*Fe(le*t,le*e,le*n);break;default:he+=ue*Ee(le*t,le*e)}return.5*(he*ve+1)},this.noiseDetail=function(t,e){je=t||je,ye=e||ye,Te()},this.setRng=function(t){Re=t,Ce()},this.toString=function(){return"[object SimplexNoise "+je+" "+ye+"]"},this.getGrid=function(t,e){var n=[];e=e||t;for(var r=0;t>r;r++){n[r]=[];for(var o=0;e>o;o++)n[r][o]=this.noise*this.level}},this.getTileableGrid=function(){},Ce(),this.setRng(e.rng),this.noiseDetail(e.octaves,e.persistence,e.level)}"undefined"!=typeof define&&define([],function(){"use strict";return SimplexNoise});
<button type="button" onclick="run()">Give me another one!</button>
<br>
<br>
<div id="noise"></div>