Updates to the module to avoid js loading on every page.