added swipe btns and organized js into init
adding init to repo