Fix for #107 and moved close function into $.swipebox