Added extra JS scripts

* Detect ipad, and display video controls, set width to 100%.
* Refactored analytics into a script.