Fixed issue with duplicate functions in js file.

Hotfix, allows animations to load