Fixes selection popup

Only Video objects hosted on UOLMais were working, now there is a funcion
to handle different types.

The embed javascript was not escaped correctly, the correct is use
django.utils.html.escapejs instead of escape.