trying to fix safari and firefox bug, clean up ‘type’ variable
wrap animation title info in a div instead of wrapping
buttons in a div
Fix hover and click animations not firing in
Firefox and Safari
refactor javascript to be more functional and easier
to read