merged run code into app.js