Updated index.js to use new timer functionality, and altered mainMaps.js to make it more compact
and readable.