A simulation of life using javascript