JS File Object Get Extension
return filename.split('.').pop();
Open Octopus
return filename.split('.').pop();