Try to build a lightweight and testable leaflet directive