JavaScript and Artificial Intelligence