Threes AI + basic JS implementation