swipe complete with js problem