tidy up themes loader.js file
Merge pull request #740 from CharlieMarshall/themeTidyUp

tidy up themes loader.js file