create elements from js, rename events to swipe