Font style button state now matches selected text

* Fix colour pickers not updating their state
* Fix JSHint errors