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.
For some reason tut5 code was lower cased
Merge branch 'newLoader' into develop

Conflicts:
	bpm_states.js