added  to the animate call for cross browser compatability