animation working now in the browser