Got setinterval and cancelinterval working.