move noise function to demos so it doesn't need to be pulled from node_modules