JavaScript timer set interval js clearinterval

$timer = setInterval(command, 5000);
clearInterval($timer);
Nasty Narwhal