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