Added swapWithStyle() function that replaces previous behavior of JSAV's swap function