Strip .js suffix when normalizing path.