move JavaScript to separate file
prettify JavaScript
add swipe support on mobilde devices

this needs touch events, mouse is not supported