Nome do arquivo sem extensão JavaScript

x.replace(/\.[^/.]+$/, "")
Prickly Pelican