Fixed problem when running networkmap.js from a subdirectory