Using generated video instead of video on the page
Adding tracking info
Reorganize the code a little and fix some comments.