JS refactoring of toggleItem (normal and website view) + focus js class handling