Updating examples to work with FireFox and Chrome