handling script tags better