Code duplication sucks! I Can you instead do:

```js
uri = uri + '.js'
```

And change else block to `if (!(uri in modules)) { ....`