Formatting changes & logic simplification
- Ran a formatter over the file
- Modified comments to be more understandable.
- Simplified
renderTokenHUD
hook logic. - Removed use of the deprecated
event
variable. - Replaced deprecated jQuery
bind
function withon
function.