Create ai.js

First crack at creating a random walk