add example dir to ignore list
add simple example
make first priority if defined via javascript, and clean code