cross browser function to dynamically load an external css file