Fix bad browser switch + License header

Checking `if (something)` isn't sane in this case, as:
```javascript
0 == false // valid value
undefined == false // not supported by browser
```
Added license header, while on it.

Regards,
Christoph