Fix for onstatechange function passed into the slider directly

This is the PR to fix [issue #16](https://github.com/darul75/ng-slider/issues/16)