Update example to make Firefox friendly

Occasional builds of Firefox don’t like variables named ‘history’
Changed examples to make Firefox friendly; added 'lite' version.