Accept only numeric keys
Fix jshint warnings