Remove trailing comma, to fix problems in Internet Explorer
Fix detection of EME support in non-Chrome browsers
Internet Explorer 8 won't allow us to change the type again, so create a new clean input