Fix warnings/errors in noscript plugin