hacking env.js to get around Document namespace conflict with mootools