generate `el.id` in `init(el)` if `id` is empty

Fix #6.