missing parentheses

`localStorage` method should be called to test the existence of global object localStorage