Fixed javascript animations;