Fixed some issues for Chrome and IE. Also added window resize support.