Javascript get filename from path without extension. replaceFirst(regex, "$1") e