Interactive restricted boltzmann machines in Javascript