Fix auto selection problem

Fix a problem where the first item of the list was always selected, and
where over selected items where lost.
Add jsfiddle demo

Add a jsfiddle demo to test this project.