Fix type in swipe.js

Improper use of comma