Js implementation of the dawkins weasel program