fix text/javascript type