Rename `$HANDLER` to `PROXY`.

Remove `CONSTANTS`.

Make it IE friendly via `.charAt`

Use `STAR` constant.

Name `matches` function.