fix bug in noscript support