correct media audio/video detection code

The audio video detection code was missing an assignment of the actual result from the browser sniffing code.

The test fails on Phantomjs and not on other browsers because Phantomjs is in the quite unique situation that it does not support audio and video at this time.