created initialize.js to do the initialization work.