tidy up themes loader.js file

This is applied to all themes except pfsense_ng which is already done and theme pfsense_ng_fs which has the same changes awaiting approval in PR https://github.com/pfsense/pfsense/pull/739