Docs correction

Docs were giving example with `window`as element. That breaks the code
as described in #1012

This commit changes the example to something one can copy/paste and see
it working "out of the box":  http://jsfiddle.net/v4yJD/

It changes also the first parameter info, from element to mixed, since
code source uses `this.element = document.id(element);`