simple example with browser globals