Added the ability to select index(0)
Merge pull request #16 from neo/f83bb4f1d0e6124bd2f00ccff96ae948dec0f936

Fix "select with index 0" bug.
Fix syntax errors
Prevent onSelected callback from being called at initialization