fix jshint error
swipe for endslates too