wrap in document.ready so inbox gets instantiated properly.