Update examples.js

making it a bit more readable.