add controller.js for fetching extractions and initializing graph