Connect bughouse.js code