Support mixed case file extensions

Ignore case so that `.djs`, `.DJS`, and `.Djs` all work.

Also, no need to match entire string, just the end. See http://jsperf.com/regex-match-all-or-end-only regarding performance gains.