JS FILE Object Get Extension

return filename.split('.').pop();
Open Octopus