first version of stars js code

stars js code for training