Added window resizing to 2anim.js.