modified Scripts management to handle both scripts and stylesheets