Add "extension" argument to require non-JS files without extensions

This pull request adds "extension" option for non-JS files.
Related to #55.