detect a browser environment and not attempt to run of require vm spec.