Adjustments o examples.

... and small simplification in the code.
Docs for popupOptions.
Fix js typo.
Fix link on docs.
Update docs