Here's our style guide for comments https://github.com/Wikia/guidelines/blob/master/JavaScript/CodingConventions.md#comments.  I would only add comments for code that is not immediately obvious. For example, the callbacks var is pretty clear, but a note about targetOrigin might make that var more clear. So it would be:
```javascript
// URL origin of the target
targetOrigin = '',
```