Changing ajax to call every 5 seconds, not every second, or else studdering occurs