Use JS as content-type due to mimesniffing

Fixes https://github.com/owncloud/core/issues/7869