Contracting JavaScript snippets

What's the big deal?

- Contraction of snippets;
- Adding some [Airbnb Syntax Specifications](https://github.com/airbnb/javascript)
Actually, I started to hammer around some points that could be valid, eg:

```js
        if (keymap.up !== event.which && keymap.down !== event.which && keymap.enter !== event.which) {
            return;
        }
```

To:

```js
if (~[keymap.up, keymap.down, keymap.enter].indexOf(event.which)) return;
```

And:

```js
         if (window.history.pushState) {
            if (previousQuery === undefined) {
                window.history.pushState(null, "Search", "/search/?q=" + encodeURIComponent($('input[type="search"]', form).val()));
            } else {
                window.history.replaceState(null, "Search", "/search/?q=" + encodeURIComponent($('input[type="search"]', form).val()));
            }
        }
```

To:

```js
         if (window.history.pushState) {
            var states = [
                null,
                "Search",
                "/search/?q=" + encodeURIComponent($('input[type="search"]', form).val())
            ];
            
            undefined === previousQuery ? 
                window.history.pushState.apply(window, states) : 
                window.history.replaceState.apply(window, states);
        };
```

The point is: I'm addicted to syntax design. Unfortunately, I made the other changes forgetting the consequences – and I couldn't imagine that this kind of change would sound like an offense.

By the bye, sorry for that. And by now, thank you to teaching me to do not touch on other people's syntax patterns.