update casing in swipe js