General Tidy Up

Sort tabbing.
Add semi-colon that was missing.
Standardise the spacing.
Rename animElemn to $animElem
Change $(animElem) to animElem