fix for noscript to take appropriate path