Fixed  Javascript scripts and added animation