run example.js on DOM ready