Added support for passing search field DOM element in the options.
Joined config and options together.
Fixed some bad code.
Updated Leaflet version in the examples.