Some work with animating graphics with javascript