AG|ES: fix typo in togglejs and change for..in to for loop for carousel actions