added javascript for setting height and width of animation