adding script tags for swipe