Working Update

Made compatible with touch gestures however this requires a redirect to
html rather than activate a function on the page