fixed global definition (browser independent now)