Added better file loading.

Due to Finder adding .DS_Store files, added if statement to only load
‘.js’ files.