Update index.html

Refactored script file and added video element.