Landed a patch for the double extension issue

I noticed that the in the last unit-test (double load), the .js extension got added twice. This patches fixes it.