After running rscript on opencpu, we open a gaggle_output.html page to display results. geneenrichment.js is injected to the page and generates output and inject them to the gaggle_output.html page as well.

For gaggle_output.html page, we use a timer and periodically check whether there are new data items injected to the page.