changes script tags to work with ssl and non-ssl