moved animation code to separate script files; retained configuration in main html