env exports fix and global jquery reference