Using window.setInterval over a period of time. compare start with end
jQuery 1.9.1, HTML, CSS, JavaScript