https://eye.kohei-kevin.com/2023/02/01/remove-file-extension-in-javascript/