Why is the ".js" removed from the others but included for require?