fixed script tag in HTML template, added support for remote resources (embedded video)