JavaScript shell game