dances in javascript