A JavaScript implementation of the classic GORILLAS.BAS