Move nice jQuery animations to separate functions