Finally got leaflet directive functioning