Dynamically optimizing VM for MATLAB using JavaScript as a target.