Completed jQuery for the animations of the selections