Changed 'file_loc' function name to 'process_uri' and made other minor changes.
Merge branch 'local-ws' into search
Removed a few unnecessary lines of code in cat.js.
Buggy.