tweak the app.js to add socketstream event ready code