Slider directive implementation for AngularJS, without jQuery dependencies