Added localStorage to keep statistics in browser after refresh