My first experience using Javascript - oooo animation