Javascript script to get a file extension from a filename in an one-line universal solution or from a file path.
Based in this solution:
https://stackoverflow.com/questions/190852/how-can-i-get-file-extensions-with-javascript