A Utility for detecting the underlying Javascript Environment