set contentType in js adapter