title: Extract filename and extension in js
body: <p>Need a method in JavaScript to extract a filename and extension.</p>
  
  <p>Example: 
  <code>/vagrant/modules/americabuy/tranzilaNotifications/class/../../../a_tranzila/log/tranzila_2018-01-09_08-58-47.json</code></p>
  
  <p>returns array: <code>["tranzila_2018-01-09_08-58-47","json"]</code></p>