restructuring html to video canvas resize optimization

Signed-off-by: Alejo <a.rotemberg@gmail.com>