Fix for issue 1: hidden files included in compiled function. (Now only compiling filenames that have the .js extension.