handle script tags vs blocks