Initial Javascript solution with animated cells.