Update Javascript snippets
Improve ido utility