Get content type from file name javascript

How old is paul mccartney
Icarus falls album cover
League of legends f9
Bmw heavy bike price in pakistan 2020