Using janus.js as JavaScript module