Javascript code blocks returning wrong content-type