Updated script to use the apparently new brain api
Added console.log lines to debug script
Fixed room detection
Make new scripts take advantage of repo rooms