Bug 838717 - Import main.js before accessing Weave; r=rnewman