Fixed issue with duplicate functions in js file.
Merge pull request #21 from ahegyi/AnimationFixes

Fixed issue with duplicate functions in js file.