demos: Use require.toUrl for portability regardless of page location