Fixed jshint issues and use ButtonModel in AbstractToggleButton