adjust examples to new loop.js