simple jquery timer using both interval & timeout functionality