use text/html content type so the script works