Throws error

Uncaught TypeError: Cannot read property 'keys' of null