Use asset types for js/css instead of guessting it at runtime