minor js fix

Small fix for animation on homepage