var startIndex = filePath.lastIndexOf("\");
endIndex = filePath.lastIndexOf(".");
var fileName = filePath.substring(startIndex + 1, endIndex);