Use `ApplePass` instead of `Bearer`

Also cleans up some code style and adds JSHint.