Finish porting West World  example to JS from AI book