FOR MASTER: view transactions; optimize javascript for inventory