Fixed regex
Replaced once used function with anon function
Adding level improvement

Instead of slicing the filepath to get the name, add ".json" to all files
in array when passing to loading code. Cleans up nicely.