fixed JS files with the same filename

ref #281