Fix #199, Strip out javascript from the response while rendering preview