Added weave-tools.js sample code.