javascript: choose sections to display