set callback response to text/javascript type