fix theme switcher on main and examples page
add support for content editable
fix jshint errors