Putting back logic to handle custom script and stylesheet files