Precog's javascript client library