Added Javascript for animation