shapes rollback

It seems js has not strict objects by reference?  I don’t know but it
isn’t worth the hassle right now :D