added average time over intervals
added checks to input
Added javascript that executes on page load