ksimanenka : hometask-session1

Hi
It'll be great to get Your short code review.
I use Java, so any comments about code style are welcome.
Thanks.
No need to enclose you module into function and call it, this is no browser code, so no variables will leak out unless you explicitly export them.

You could just do it like this:

    var extTypes = { ... };
    exports.getExt = function(path) { ... };
    exports.getContentType = function(ext) { ... };

This will also eliminate the need for `ext` property