Refactor JS for remaining landing pages.