Add var to example to prevent global declaration
ES5ify examples; remove ready function