Raise/Lower terrain height? - javascript.

how do I slowly raise or lower the terrain height, at the mouse position.

I’m working on something just like this actually, but am having some problems.

I used the paintverticles.js script from the procedural examples file on this page

You could probably copy/paste replace it (the modified paintverticles.js script from my post) right into the procedural example project.