initial javascript perlin canvas impl