Update .run functionality inapp.js