Create rbc.js

initial commit - not fully tested