fix and add example ... js way tooooo flexible