Check that scripts and styles end with .js or .css