More of the JS for the MediaType setting #217