src/background: minor cleanup

* prefers dot notation when possible.
* removes whitespace
* semicolons
Nit: I think this line should move back two spaces and have the bracket on the same line.