add to cross-browser  sample code for testing