do swipe box and shift firing order of js and methods