js app:  rework in a new image, get output sort of working