reorganize html, add cross-browser video func