A javascript code that detects if user goes offline without jquery !