Pass proper context when triggering event
Add brackets config to enable use of JSHint