add utils.splitext to js

mimic Python os.path.splitext
use splitext in notebook_list

fixes case where notebooks with '.' in name were misrendered