Change update intervals

From 15 seconds to 1 second
Conflicts:
	index.html
Update index.html
disables notifications while page is focused
 - disabled notification while page is focused (should also fix notifications on page load)
 - minor code change to reduce redundancy