Wrap badge function in a JavaScript object
Modify jsHint settings