Scale $1 in java script

does anyone know how to add a scale $1 message inside javascript that has its own inlet so that I can feed it a number or another scale message and make my jit.gl.mesh(inside javascript) shape grow in size.

so it is more clear here is an example of the max numbers I would like to pass to a javascript.

— Pasted Max Patch, click to expand. —

Copy all of the following text. Then, in Max, select New From Clipboard.