Changed file reading to be relative to script so it works regardless of where node is called from