add app.js public run function