A javascript class to manage multiple element animations