Separate js code into separate files, add to gitignore, still need to send file in mongoose response and make json config file