More genericVL patches.

Update the JS to be a little more VL friendly.