created main function in main.js

created main function in main.js which includes var setup for
numOfPeople, people, names and interval