More of the js for the media types. #217