beat animation bar using CSS + javascript