GORILLAS.BAS in Javascript