Let main and note pages use single entry point for require