major overhaul and refactor of file structure for node app