updated js to include animations