IE8 js fixes, added video encoding back in