Got it working with multiple HTML files. Next step is gesture recognition.