Fixed an error where only css link tags where used instead of img and script too when required