Use correct content type for JavaScript