fix #23

thanks for reporting it, do not know what happened, merge powered maybe
Fix for onstatechange function passed into the slider directly
Merge pull request #24 from xqjibz/issue16

Fix for onstatechange function passed into the slider directly

Perfect thx you dude, do not hesitate again next time