Add unlinkAllMedia methods.
jshint fixes.