Supports browserify

When `require` is declared, use `require('jquery')` as `jQuery`.
typo. change `widnow` to `window`