Put AB tests in new javascript

The format is different, but we are changing the format of everything.