My take on re creating a tamagotchi program using javascript