a little vm for js