js creation and animation