Change from jqeury css control to class toggle
jshint ignore templates, use of jobject
fix repaint layer