KopfAnimation, in Javascript