fixed snippet contentype in js