Update beautify.js

ALternative way to access global scope as a last chance for headless and untypical environments.