Adding animation panel script and elements