Fixed animation bug, still fixing IE compatibility