Fix extra class toggle in javascript.