Adding support for .rb extension

Fixes #376
Adding fix for #376 to minified js
Merge pull request #377 from nfriedly/patch-1

Adding support for .rb extension