Omaha in JavaScript (will finish it later)