fix require() in examples