Attempted to fix EM undefined errors; Removed unnecessary commented out code for getFiles and getProjects functions