there's nothing similar to node's vm in browser javascript?