Update wp_SwipeSliderJS.php

added anonymous functions