JavaScript function to reload the stylesheets